import { createStore } from 'vuex'

export default createStore({
  state: {
	userId:null,
    currUser:"",
    currUserAddress:""
  },
  getters: {
    
  },
  //同步方法
  mutations: {
    addUser(state,params){
      state.currUser=params
    }
  },
  //异步方法
  actions: {
    addCurrUserAddress(store,params){
      store.state.currUserAddress=params
    }

  },
  modules: {
  }
})
